import { productRouter } from 'product/ProductRouter'
import { RouteRecordRaw } from 'vue-router'


const baseRouter: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'home',
        component: () => import('../views/Home/Home'),
    },
    {
        path: '/about',
        name: 'about',
        component: () => import('../views/About/About'),
    },
    {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: () => import('../views/NotFound')
    }
];

// 聚合所有功能模块的路由
const routes: RouteRecordRaw[] = [ ...baseRouter, ...productRouter ];
export default routes;